import { http } from "@/utils/http";
import { baseURLApi, type resResult } from "./utils";

type categoryOption = {
  id: number;
  categoryName: string;
};
export const getAllCategory = () => {
  return http.request<resResult<categoryOption[]>>(
    "get",
    baseURLApi("/category/getAllCategory"),
    {}
  );
};
